package com.itawei.d1_lambdademo1;

/**
 * lanmbda表达式
 */
public class Test {
    public static void main(String[] args) {
        method(
                () -> {
                    System.out.println("陈平安学会了游泳");
                }
        );


    }

    public static void method(Swim s) {
        s.swim();
    }
}

